include_rules = [
  "+chrome/browser/ash/crosapi/browser_util.h",
  "+chromeos",
  "+components/back_forward_cache",
  "+components/guest_view",
  "+components/keyed_service",
  "+components/pref_registry",
  "+components/services/unzip/content",
  "+components/services/unzip/public",
  "+components/sessions",
  "+components/signin/public",
  "+components/storage_monitor",
  "+components/sync",
  "+components/sync_preferences",
  "+components/update_client",
  "+components/value_store",
  "+components/variations",
  "+components/version_info",
  "+components/web_cache",
  "+components/web_modal",
  "+components/zoom",
  "+content/public/browser",
  "+device/bluetooth",
  "+google_apis/gaia",
  "+gpu/config",
  "+grit/extensions_strings.h",
  "+net",
  "-net/url_request",
  "+net/url_request/redirect_info.h",
  "+net/url_request/redirect_util.h",
  # Needed for a flag.
  "+net/url_request/url_request.h",
  "+pdf/buildflags.h",
  # This directory contains build flags and does not pull all of PPAPI in.
  "+ppapi/buildflags",
  "+services/data_decoder/public",
  "+services/device/public",
  "+services/metrics/public/cpp",
  "+services/network/public/cpp",
  "+services/network/public/mojom",
  "+services/network",
  "+services/preferences/public/cpp",
  "+services/service_manager/public/cpp",
  "+skia/ext",
  "+third_party/leveldatabase",
  "+third_party/re2",
  "+third_party/blink/public/common",
  "+third_party/blink/public/mojom",
  "+third_party/blink/public/platform",
  "+third_party/blink/public/web",
  "+third_party/zlib/google",
  "+ui/display",
]

specific_include_rules = {
  ".*(test|test_util)\.(cc|h)$": [
    "+ash/constants/ash_features.h",

    "+components/javascript_dialogs",
    "+components/user_prefs",

    "+storage/browser/test",

    # Temporarily allowed testing includes.  See above.
    # TODO(devlin): Ideally, we'd remove these (or move the tests into
    # //chrome). See https://crbug.com/773004.
    "+chrome/browser/apps/platform_apps/app_browsertest_util.h",
    "+chrome/browser/extensions/api/permissions/permissions_api.h",
    "+chrome/browser/extensions/extension_apitest.h",
    "+chrome/browser/extensions/extension_service_test_base.h",
    "+chrome/browser/ui/browser.h",
    "+chrome/common/pref_names.h",
    "+chrome/common/chrome_switches.h",
    "+chrome/test/base/testing_profile.h",
    "+chrome/test/base/ui_test_utils.h",
  ],
  "sandboxed_unpacker_unittest.cc": [
    "+components/services/unzip",
    "+services/data_decoder",
  ],
  "extension_prefs.cc": [
    # For CONTENT_SETTING_ALLOW / BLOCK.
    "+components/content_settings/core/common",
  ],
}
